package org.example;

import java.util.EnumMap;

public class EnumMapTest {

    public static void main(String[] args) {
        EnumMap<HttpStatusEnum, String> enumMap = new EnumMap<>(HttpStatusEnum.class);
        enumMap.put(HttpStatusEnum.OK, "成功的");
        enumMap.put(HttpStatusEnum.NOT_FOUND, "找不到的");
        System.out.println(enumMap);
        System.out.println(enumMap.get(HttpStatusEnum.OK));
    }
}